package com.sporadic.client.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "`order`")
public class Order {
    @TableId()
    private String orderId;
    @TableField(value = "order_userId")
    private Integer orderUserId;
    private BigDecimal orderTotal;
    private Integer orderDesk;
    private String orderRemark;
    private Integer orderStatus;
    @TableField(value = "order_merchantId")
    private Integer orderMerchantId;
    @TableField(value = "order_createTime")
    private Date orderCreateTime;
    @TableField(value = "order_endTime")
    private Date orderEndTime;
    @TableField(value = "order_payWay")
    private Date orderPayTime;
    @TableField(value = "order_payWay")
    private Integer orderPayWay;
    @TableField(value = "order_payStatus")
    private Integer orderPayStatus;
    @TableField(value = "order_updateTime")
    private Date orderUpdateTime;

    private BigDecimal orderPrice;
    private Integer orderPeopleNumber;
    private BigDecimal orderActualAmount;

    private OrderStatus Os;

    @TableField(exist = false)
    //订单详情
    private List<OrderDetails> orderDetails;
}
